//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03B
TN_Widget.CreateTable([['The Chainsmokers','Toyota Stadium - Frisco','Frisco, TX','Saturday','5/4/2024','7:30 PM','6305508','The-Chainsmokers-5-4-2024'],['Hangout Music Festival: Zach Bryan, Lana Del Rey & Odesza - 3 Day Pass','Gulf Shores Beach','Gulf Shores, AL','Friday','5/17/2024','TBD','6132149','Hangout-Music-Festival--Zach-Bryan--Lana-Del-Rey---Odesza---3-Day-Pass-5-17-2024'],['The Chainsmokers','Encore Beach Club','Las Vegas, NV','Saturday','5/25/2024','11:00 AM','6237652','The-Chainsmokers-5-25-2024'],['The Chainsmokers','XS Nightclub At Wynn Las Vegas','Las Vegas, NV','Saturday','6/1/2024','10:30 PM','6237534','The-Chainsmokers-6-1-2024'],['The Chainsmokers','Parc Jean-Drapeau','Montreal, Canada','Friday','6/7/2024','6:00 PM','6318425','The-Chainsmokers-6-7-2024'],['The Chainsmokers','Encore Beach Club','Las Vegas, NV','Saturday','6/8/2024','11:00 AM','6237653','The-Chainsmokers-6-8-2024'],['The Chainsmokers','XS Nightclub At Wynn Las Vegas','Las Vegas, NV','Saturday','6/15/2024','10:30 PM','6237535','The-Chainsmokers-6-15-2024'],['The Chainsmokers','Encore Beach Club','Las Vegas, NV','Saturday','6/22/2024','11:00 AM','6237654','The-Chainsmokers-6-22-2024'],['NASCAR Xfinity Series: The Loop 110 (Performances by The Chainsmokers & The Black Keys)','Chicago Street Course','Chicago, IL','Saturday','7/6/2024','1:30 PM','5983940','NASCAR-Xfinity-Series--The-Loop-110--Performances-by-The-Chainsmokers---The-Black-Keys--7-6-2024'],['The Chainsmokers','Encore Beach Club','Las Vegas, NV','Sunday','7/7/2024','11:00 AM','6237655','The-Chainsmokers-7-7-2024'],['The Chainsmokers','XS Nightclub At Wynn Las Vegas','Las Vegas, NV','Saturday','7/13/2024','10:30 PM','6237536','The-Chainsmokers-7-13-2024'],['The Chainsmokers','Encore Beach Club','Las Vegas, NV','Saturday','7/20/2024','11:00 AM','6237648','The-Chainsmokers-7-20-2024'],['The Chainsmokers','XS Nightclub At Wynn Las Vegas','Las Vegas, NV','Friday','7/26/2024','10:30 PM','6237537','The-Chainsmokers-7-26-2024'],['The Chainsmokers','Encore Beach Club','Las Vegas, NV','Saturday','8/3/2024','11:00 AM','6237649','The-Chainsmokers-8-3-2024'],['The Chainsmokers','XS Nightclub At Wynn Las Vegas','Las Vegas, NV','Saturday','8/10/2024','10:30 PM','6237538','The-Chainsmokers-8-10-2024'],['The Chainsmokers','Encore Beach Club','Las Vegas, NV','Saturday','8/17/2024','11:00 AM','6237650','The-Chainsmokers-8-17-2024'],['The Chainsmokers','XS Nightclub At Wynn Las Vegas','Las Vegas, NV','Saturday','8/24/2024','10:30 PM','6237539','The-Chainsmokers-8-24-2024'],['The Chainsmokers','Encore Beach Club','Las Vegas, NV','Saturday','8/31/2024','11:00 AM','6237656','The-Chainsmokers-8-31-2024'],['The Chainsmokers','Encore Beach Club','Las Vegas, NV','Saturday','9/14/2024','11:00 AM','6237657','The-Chainsmokers-9-14-2024'],['The Chainsmokers','XS Nightclub At Wynn Las Vegas','Las Vegas, NV','Saturday','9/21/2024','10:30 PM','6237540','The-Chainsmokers-9-21-2024'],['The Chainsmokers','Encore Beach Club','Las Vegas, NV','Saturday','9/28/2024','11:00 AM','6237651','The-Chainsmokers-9-28-2024']],'The Chainsmokers','http://www.ticketnetwork.com/ticket/The-Chainsmokers-events.aspx');